#system("sudo -s")
#expect "Password: "
#send "user"
#system("sudo tcpdump -i eth1 -n -e -q >> format1.txt ")


file=File.open("format2.txt","r")
fout=File.open("filtered.txt","w")
while(1)
while line=file.gets
if /\d\d:\d\d:\d\d.\d/
	string1 = line.scan(/\d\d:\d\d:\d\d.\d/)
	fout.puts string1 
	
end
if /\w\w:\w\w:\w\w:\w\w:\w\w:\w\w/
	string2= line.scan(/\w\w:\w\w:\w\w:\w\w:\w\w:\w\w/ )


fout.puts string2
	#fout.puts " "

end

if /\d\d\d.\d\d\d.*.*\d./

string = line.scan(/\d\d\d.\d\d\d.*.*\d. /)

fout.puts string
#puts string.delete">"

end
 fout.puts "\n"
end
end
file.close
fout.close